﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using WindowsFormsView;

namespace WindowsFormsPresenter.InventoryItemCategory
{
    public class InventoryItemCategoriesPresenter : Presenter<IInventoryItemCategoriesView>
    {
        public InventoryItemCategoriesPresenter(IInventoryItemCategoriesView view)
            : base(view)
        {
        }

        public void Display(bool isMaterial)
        {
            View.InventoryItemCategories = Model.GetInventoryItemCategoriesByBranch(isMaterial);
        }

        public void DisplayActive(bool isMaterial)
        {
            View.InventoryItemCategories = Model.GetInventoryItemCategoriesByBranchAndActive(isMaterial);
        }
    }
}
